]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Provide icon helper classes
authorJakub Steiner <jimmac@gmail.com>
Mon, 15 Jul 2019 22:04:48 +0000 (00:04 +0200)
committerJakub Steiner <jimmac@gmail.com>
Mon, 15 Jul 2019 22:07:51 +0000 (00:07 +0200)
- to help present icons on light backgrounds, the new fullcolor
  icons need some help. Mimic gtk styles

Needed for https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/168

data/theme/gnome-shell-sass/_common.scss

index 7e3f513ec3029f973dfe20e0744cd0386a47caed..ae1bed6a7641a8862eab4a7d4989c86a262fc6a3 100644 (file)
@@ -619,6 +619,22 @@ StScrollBar {
   app menu inside the main app window itself rather than the top bar
 */
 
+/*************
+ * App Icons *
+ *************/
+/* Outline for low res icons */
+.lowres-icon {
+    icon-shadow: 0 -1px rgba(0,0,0,0.05),
+      1px 0 rgba(0,0,0,0.1),
+      0 1px rgba(0,0,0,0.3),
+      -1px 0 rgba(0,0,0,0.1);
+}
+
+/* Drapshadow for large icons */
+.icon-dropshadow {
+  icon-shadow: 0 2px 12px rgba(0,0,0,0.1),
+               0 1px 2px rgba(0,0,0,0.5);
+}
 
 /* OSD */
 .osd-window {